package com.peng.crm.settings.entity;

import java.io.Serializable;

/**
 * 字典值(DicValue)实体类
 *
 * @author makejava
 * @since 2022-06-27 15:44:00
 */
public class DicValue implements Serializable {
    private static final long serialVersionUID = -15602817423757876L;

    /**
     * 主键UUID
     */
    private String id;
    /**
     * 字典值，不能为空，并且要求同一个字典类型下字典值不能重复，具有唯一性。
     */
    private String value;
    /**
     * 文本，可以为空
     */
    private String text;
    /**
     * 排序号，可以为空，但不为空的时候，要求必须是正整数
     */
    private String orderNo;
    /**
     * 字典类型编码，外键
     */
    private String typeCode;

    private String typeName;

    /**
     * 关系属性
     */
    // private DicType dicType;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    @Override
    public String toString() {
        return "DicValue{" +
                "id='" + id + '\'' +
                ", value='" + value + '\'' +
                ", text='" + text + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", typeCode='" + typeCode + '\'' +
                ", typeName='" + typeName + '\'' +
                '}';
    }
}

